home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
source
/
swags-z
/
textedit.swg
/
0001_CENTER1.PAS.pas
next >
Wrap
Pascal/Delphi Source File
|
1993-05-28
|
496b
|
26 lines
{
>Anyways, does anyone here have a quick and easy Procedure or
>Function For centering Text?
}
Program CenterIt_Demo;
Uses
Crt;
{ Display a String centered on the screen. }
Procedure DisplayCenter(st_Temp : String; by_Yaxis : Byte);
begin
GotoXY(((Succ(Lo(WindMax)) - Length(st_Temp)) div 2), by_Yaxis);
Writeln(st_Temp);
end; {DisplayCenter. }
Var
by_OldAttr : Byte;
begin
ClrScr;
DisplayCenter('The Spirit of Elvis says... Hi!', 10);
ReadKey;
end.